#include <iostream>
#include "InsertionSort.h"

void Print (const int *A, unsigned length);

int main (int argc, char **argv)
{
  int A[] = {4, 1, 5, 3, 2};

  std::cout << "Before InsertionSort function" << std::endl;
  Print (A, 5);
  InsertionSort (A, 5);

  std::cout << "After InsertionSort function" << std::endl;
  Print (A, 5);
  return 0;
}

void Print (const int *A, unsigned length)
{
  for (unsigned i = 0; i < length; i++)
    std::cout << "A[" << i << "] = " << A[i] << std::endl;
}